<{use class="frontend\assets\FancyBoxAsset"}>
<{FancyBoxAsset::register($this)|void}>
<div class="content margin_top">
    <header class="header fixed_top bg_mx_green"></header>
    <form class="user"></form>
</div>
<!-- toast模版 -->
<script type="text/template" charset="utf-8" id='info_template'>
    <div class="bg_white">
        <div class="padding_15 flex border_b">
            <div class="width_100">巡检员</div>
            <div class="left_100">
                <input type="text" disabled value="{{=it.pname}}">
            </div>
        </div>
        <div class="padding_15 flex border_b">

            <div class="col-xs-12 padding_3">
                <a href="{{=it.identity_img}}" rel="fm" class="fancybox"><img src="{{=it.identity_img}}" alt=""></a>
            </div>
        </div>
        <div class="padding_15 flex border_b">
            <div class="width_100">联系电话</div>
            <div class="left_100">
                <input type="text" disabled value="{{=it.pphone}}">
            </div>
        </div>
        <div class="padding_15 flex border_b">
            <div class="width_100">简介</div>
            <div class="left_100">
                <textarea name="descripation">{{=it.pdescripation||''}}</textarea>
            </div>
        </div>
    </div>

</script>
<script>
    // 页面初始化
    var info = <{$detail}>;
    console.log(info)
    var evalinfo = doT.template($("#info_template").text());
    var evalToast = doT.template($("#toast_template").text());
    loaddata(".user",evalinfo,info);
    loadheadbar("业务员资料");

    //点击预览图片
    $('.fancybox').fancybox({
        'titlePosition' : 'over',
        'cyclic'        : true,
        'height':500
    });



</script>







